package cn.stronglink.asset.module.dam.utils.dataJsonUtils.req.send;

import com.alibaba.fastjson.JSON;
import cn.stronglink.asset.module.dam.entity.message.MsgScreenCommand;
import cn.stronglink.asset.module.dam.utils.dataJsonUtils.realtime.send.MsgSendUtil;
import cn.stronglink.asset.module.dam.utils.factorys.realtime.sendcmd.FactoryOpenWindow;

public class OpenViewUtil {
	public  static String topic="serviceToDam";
	
	public static void openView(MsgScreenCommand bm,int windowId) {//5
		bm.getAwsPostdata().setCommand(FactoryOpenWindow.openWindow(windowId));
		MsgSendUtil.sendMsg(topic,JSON.toJSONString(bm));// 发送消息
	}
}
